package com.aynu.bookstore.client.interfac;

import java.util.List;

import com.aynu.bookstore.beans.OrItem;
import com.aynu.bookstore.beans.Orders;
import com.aynu.bookstore.beans.Products;
import com.aynu.bookstore.utils.PageModel;

public interface IClientService {

	Integer selectProductsCountByProduct(String product);

	List<Products> selectAllProducts(String product, PageModel pageModel);

	Integer selectProductsCountByName(String textfield);

	List<Products> selectAllProductsByName(String textfield, PageModel pageModel);

	Products findProductById(Integer id);

	void saveItems(OrItem items);

	void saveOrders(Orders orders);

	void editOrder(String out_trade_no);

}
